package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;
import com.atguigu.gulimall.product.vo.AttrResp;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author jianPing
 * @email 754844887@qq.com
 * @date 2022-01-14 15:27:51
 */
public interface AttrService extends IService<AttrEntity> {

    IPage<AttrEntity> queryPage(Map<String, Object> params, Long catelogId);

    PageUtils queryAttrPage(Map<String, Object> params, Long catelogId,String attrType);

    AttrResp getDetail(Long attrId);

    void updateDetail(AttrVo attr);

    PageUtils findNoRelationAttr(Map<String, Object> params, Long attrGroupId);

    List<Long> filterAttrIdsBySearchType(List<Long> attrIds, Integer searchType);
}

